<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ip::address::operator&lt;&lt;</title>
    <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
    <link rel="home" href="../../../index.html" title="Asio">
    <link rel="up" href="../ip__address.html" title="ip::address">
    <link rel="prev" href="operator_lt_.html" title="ip::address::operator&lt;">
    <link rel="next" href="operator_lt__eq_.html" title="ip::address::operator&lt;=">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
    <tr>
        <td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="operator_lt_.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                             href="../ip__address.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="operator_lt__eq_.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
    <div class="titlepage">
        <div>
            <div><h4 class="title">
                <a name="asio.reference.ip__address.operator_lt__lt_"></a><a class="link" href="operator_lt__lt_.html"
                                                                             title="ip::address::operator&lt;&lt;">ip::address::operator&lt;&lt;</a>
            </h4></div>
        </div>
    </div>
    <p>
        <a class="indexterm" name="asio.indexterm.ip__address.operator_lt__lt_"></a>
        Output
        an address as a string.
    </p>
    <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <span class="identifier">Elem</span><span class="special">,</span>
    <span class="keyword">typename</span> <span class="identifier">Traits</span><span class="special">&gt;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span
                class="special">&lt;</span> <span class="identifier">Elem</span><span class="special">,</span> <span
                class="identifier">Traits</span> <span class="special">&gt;</span> <span
                class="special">&amp;</span> <span class="keyword">operator</span><span class="special">&lt;&lt;(</span>
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span
                class="special">&lt;</span> <span class="identifier">Elem</span><span class="special">,</span> <span
                class="identifier">Traits</span> <span class="special">&gt;</span> <span
                class="special">&amp;</span> <span class="identifier">os</span><span class="special">,</span>
    <span class="keyword">const</span> <span class="identifier">address</span> <span class="special">&amp;</span> <span
                class="identifier">addr</span><span class="special">);</span>
</pre>
    <p>
        Used to output a human-readable string for a specified address.
    </p>
    <h6>
        <a name="asio.reference.ip__address.operator_lt__lt_.h0"></a>
        <span><a name="asio.reference.ip__address.operator_lt__lt_.parameters"></a></span><a class="link"
                                                                                             href="operator_lt__lt_.html#asio.reference.ip__address.operator_lt__lt_.parameters">Parameters</a>
    </h6>
    <div class="variablelist">
        <p class="title"><b></b></p>
        <dl>
            <dt><span class="term">os</span></dt>
            <dd><p>
                The output stream to which the string will be written.
            </p></dd>
            <dt><span class="term">addr</span></dt>
            <dd><p>
                The address to be written.
            </p></dd>
        </dl>
    </div>
    <h6>
        <a name="asio.reference.ip__address.operator_lt__lt_.h1"></a>
        <span><a name="asio.reference.ip__address.operator_lt__lt_.return_value"></a></span><a class="link"
                                                                                               href="operator_lt__lt_.html#asio.reference.ip__address.operator_lt__lt_.return_value">Return
        Value</a>
    </h6>
    <p>
        The output stream.
    </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%">
    <tr>
        <td align="left"></td>
        <td align="right">
            <div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
                Distributed under the Boost Software License, Version 1.0. (See accompanying
                file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
            </p>
            </div>
        </td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="operator_lt_.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                             href="../ip__address.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="operator_lt__eq_.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
